import QtQuick 2.3
import "qrc:///Constants.js" as Constants

Rectangle
{
    id: caption

    // Testing purpose (design)
    // width: 300
    // height: 30

    height: Constants.captionHeight
    anchors.right: parent.right
    anchors.left: parent.left
    anchors.top: parent.top

    // Attaches to the Text element's text content
    property string label: "Application"
    property color labelColor: Constants.captionLabelColor
    property real labelSize: Constants.captionFontSize
    property string captionFont: Constants.captionFontFamily

    color: Constants.captionBackgroundColor

    // text
    Text
    {
        id: captionText
        anchors.centerIn: parent
        font.pointSize: parent.labelSize
        text: parent.label
        color: parent.labelColor
        font.family: parent.captionFont
    }
}
